QT       += core gui serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

CONFIG += c++11

VERSION = 0.0.1.0

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    axisrangesetting.cpp \
    filter.cpp \
    main.cpp \
    mainwindow.cpp \
    messageparser.cpp \
    options.cpp \
    qcpaxistickermeter.cpp \
    qcustomplot/qcustomplot.cpp \
    serialworker.cpp \
    wavedisplay.cpp \
    wavelib/auxiliary/denoise.c \
    wavelib/auxiliary/waux.c \
    wavelib/src/conv.c \
    wavelib/src/cwt.c \
    wavelib/src/cwtmath.c \
    wavelib/src/hsfft.c \
    wavelib/src/real.c \
    wavelib/src/wavefilt.c \
    wavelib/src/wavefunc.c \
    wavelib/src/wavelib.c \
    wavelib/src/wtmath.c \
    xshiftsetting.cpp \
    yshiftsetting.cpp

HEADERS += \
    axisrangesetting.h \
    filter.h \
    loggerwrapper.h \
    mainwindow.h \
    messageparser.h \
    options.h \
    qcpaxistickermeter.h \
    qcustomplot/qcustomplot.h \
    serialworker.h \
    wavedisplay.h \
    wavelib/auxiliary/waux.h \
    wavelib/header/wauxlib.h \
    wavelib/header/wavelib.h \
    wavelib/src/conv.h \
    wavelib/src/cwt.h \
    wavelib/src/cwtmath.h \
    wavelib/src/hsfft.h \
    wavelib/src/real.h \
    wavelib/src/wavefilt.h \
    wavelib/src/wavefunc.h \
    wavelib/src/wtmath.h \
    xshiftsetting.h \
    yshiftsetting.h

FORMS += \
    axisrangesetting.ui \
    filter.ui \
    mainwindow.ui \
    options.ui \
    wavedisplay.ui \
    xshiftsetting.ui \
    yshiftsetting.ui

RESOURCES += \
    resource.qrc

RC_ICONS = images/logo.ico

LIBS += \
    -L$$PWD/yaml-cpp/lib \
    -lyaml-cpp \
    -L$$PWD/log4qt/lib \
    -llog4qt

INCLUDEPATH += \
    $$PWD/yaml-cpp/include \
    $$PWD/log4qt/inc


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
